<?php
declare(strict_types=1);

namespace SixShop\Balpay;

use SixShop\Balpay\Hook\BalpayHook;
use SixShop\Core\ExtensionAbstract;
use SixShop\Payment\Contracts\PaymentExtensionInterface;
use SixShop\Payment\Contracts\PaymentProviderInterface;

class Extension extends ExtensionAbstract implements PaymentExtensionInterface
{

    public function getPaymentProvider(): PaymentProviderInterface
    {
        return app(PaymentProvider::class);
    }

    protected function getBaseDir(): string
    {
        return dirname(__DIR__);
    }

    public function getHooks(): array
    {
        return [
            BalpayHook::class
        ];
    }
}
